﻿@model csharp_books_415.Models.BooksDetailsVm
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h1>@Model.Greeting</h1>

<div class="container">
    Title:  @Model.BookDetails.Title <br />
    Published: @Model.BookDetails.Published <br />
    PageCount: @Model.BookDetails.PageCount <br />
    Author: @Model.BookDetails.Author.Name <br />
    Author City: @Model.BookDetails.Author.City <br />
    IsBestSeller: @Model.BookDetails.IsBestSeller <br />

    <hr /> Reviews:<br />
    @foreach (var r in Model.BookDetails.Reviews)
    {
        <li>@r.Content by: @r.UserName</li>
    }


</div>
